﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/Manage.master" AutoEventWireup="true"
    CodeFile="CompetePriceSetting.aspx.cs" Inherits="Manage_CompetePriceSetting" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="../lib/script/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content-top">
        <div id="content-top-title">
            <div id="content-top-img">
                <img src="../lib/images/content-content-top-title.gif" /></div>
            当前功能：竞价设置</div>
    </div>
    <div>
        <table>
            <tr>
                <td>
                    竞价轮次
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtcompetetimes"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="(*)"
                        ValidationExpression="\d+" ControlToValidate="txtcompetetimes"></asp:RegularExpressionValidator>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnSet" Text="设置轮次" OnClick="btnSet_Click" />
                </td>
            </tr>
            <tr style="display: <%= trdisplay%>">
                <td>
                    竞价时间设置
                </td>
                <td>
                    <table>
                        <asp:Repeater runat="server" ID="rptimes">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        第<%# Container.ItemIndex + 1%>轮
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCompeteBegin" runat="server" Text='<%# Eval("CompeteStartTime")%>'
                                            onFocus="WdatePicker({dateFmt:'yyyy/MM/dd HH:mm:ss'})"></asp:TextBox>--
                                        <asp:TextBox ID="txtCompeteEnd" runat="server" Text='<%# Eval("CompeteEndTime")%>'
                                            onFocus="WdatePicker({dateFmt:'yyyy/MM/dd HH:mm:ss'})"></asp:TextBox>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnSetTime" Text="设置时间" OnClick="btnSetTime_Click" />
                </td>
            </tr>
        </table>
    </div>
    <fieldset>
        <legend>竞价开关设置</legend>
        <table>
            <tr>
                <td class="td2">
                    竞价开关：
                </td>
                <td class="td3">
                    <asp:Label ID="lblcompetestatus" runat="server" Text="竞价开关目前状态：关闭" ForeColor="Red"></asp:Label>
                </td>
                <td>
                    <asp:Button runat="server" ID="btncompeteswitch" Text="开启竞价开关" 
                        onclick="btncompeteswitch_Click" />
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
